package com.retailshop.shopuser.common;

public class ParameterUtil {

    public static int getIntParameter(Object strParameter1)
    {
        int intParameter = 0;
        try {
            String strParameter= strParameter1.toString();
            if (strParameter != null && strParameter != "" && StringUtil.isNumeric(strParameter)) {
                intParameter = Integer.parseInt(strParameter);
            }
        }catch (Exception ex)
        {

        }
        return intParameter;
    }

    public static String getStringParameter(Object strParameter1)
    {
        return strParameter1==null ? null:strParameter1.toString();
    }

}
